package com.beamfield.dao.lab;

import com.beamfield.model.LabSampleHandle;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface LabSampleHandleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LabSampleHandle record);

    int insertSelective(LabSampleHandle record);

    LabSampleHandle selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LabSampleHandle record);

    int updateByPrimaryKey(LabSampleHandle record);

    List<LabSampleHandle> getSampleHandleList(@Param("offset")Integer offset, @Param("limit")Integer limit,
                                  @Param("sample_name")String sample_name, @Param("handle_date")String handle_date,
                                  @Param("beam_id")Long beam_id);

    int getCount(@Param("sample_name")String sample_name, @Param("handle_date")String handle_date, @Param("beam_id")Long beam_id);
}